This broke crossbuilds that had Host deps that used custom build
scripts, typically resulting in a failure to link (due to bad
relocations or symbols) the final executable or library.
Probably should have rustc check when generating an rlib that all the
containing objects have the appropriate arch.
let kind = match req { Platform::Plugin => Kind::Host, _ => Kind::Target, };
let (script_output, build_output) = {
(cx.layout(pkg, Kind::Host).build(pkg),
- cx.layout(pkg, Kind::Target).build_out(pkg))
+ cx.layout(pkg, kind).build_out(pkg))
};
// Building the command to execute